﻿using Homework.Domain.Table;
using Homework.EFCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LY.OAWeb.Repository.Repository
{
    public class ProductRepository : IProductRepository
    {
        private readonly MyDbContext _myDbContext;
        public ProductRepository(MyDbContext myDbContext)
        {
            _myDbContext = myDbContext;
        }
        public List<tb_Product> GetProducts()
        {
            return _myDbContext.tb_Products.ToList();
        }
    }
}
